package com.xmlrpc.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

@Service("publisher")
public class PublishHandler implements IHandler {

  private final Log log = LogFactory.getLog(getClass());
  
  public int insert() {
    log.info("inserting succeed");
    return 0;
  }
  
  public int update(String id, String title, String body) {
    log.info("updating [" + id + "," + title + "," + body + "]");
    return 0;
  }
  
  public int delete(String id, String title, String body) {
    log.info("deleting [" + id + "," + title + "," + body + "]");
    return 0;
  }
}
